# -*- coding: utf-8 -*-
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement( object ):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "人保寿险关爱百万（孝心版）医疗保险"

    def pullData(self, data={}):
        for item in Helper.selectData(self.name, self.mysql):
            data["company"] = "中国人民保险"
            data["name"] = self.name
            data["year"] = item["year"]
            data["socialSec"] = item["socialSec"]
            data["expire"] = item["expire"]
            data["payType"] = item["payType"]
            data["payRate"] = item["payRate"]
            data["price"] = item["price"]
            Helper.mergeTable( self.name,self.mysql ,data )

